﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace _02_委托练习
{
    public partial class Frm_JopMove : Form
    {
        public Frm_JopMove()
        {
            InitializeComponent();
        }

        private void button18_MouseDown(object sender, MouseEventArgs e)
        {
            MainForm.delChangePointState(PointState.Up);
        }

        private void button18_MouseUp(object sender, MouseEventArgs e)
        {
            MainForm.delChangePointState(PointState.None);
        }

        private void button21_MouseDown(object sender, MouseEventArgs e)
        {
            MainForm.delChangePointState(PointState.Right);
        }

        private void button21_MouseUp(object sender, MouseEventArgs e)
        {
            MainForm.delChangePointState(PointState.None);
        }

        private void button19_MouseDown(object sender, MouseEventArgs e)
        {
            MainForm.delChangePointState(PointState.Down);
        }

        private void button19_MouseUp(object sender, MouseEventArgs e)
        {
            MainForm.delChangePointState(PointState.None);
        }

        private void button20_MouseDown(object sender, MouseEventArgs e)
        {
            MainForm.delChangePointState(PointState.Left);
        }

        private void button20_MouseUp(object sender, MouseEventArgs e)
        {
            MainForm.delChangePointState(PointState.None);
        }

        private void Frm_JopMove_FormClosed(object sender, FormClosedEventArgs e)
        {
            MainForm.jop运行delToolStripMenuItemEable.Invoke(true);
        }
    }
}
